// SPDX-License-Identifier: Apache-2.0
//
// Copyright © 2017 Trust Wallet.

import WalletCore
import XCTest

class <%= name %>Tests: XCTestCase {
    // TODO: Check and finalize implementation

    func testAddress() {
        // TODO: Check and finalize implementation

        let key = PrivateKey(data: Data(hexString: "__PRIVATE_KEY_DATA__")!)!
        let pubkey = key.getPublicKeyEd25519()
        let address = AnyAddress(publicKey: pubkey, coin: .<%= format_name_lowercase(coin) %>)
        let addressFromString = AnyAddress(string: "__ADDRESS_DATA__", coin: .<%= format_name_lowercase(coin) %>)!

        XCTAssertEqual(pubkey.data.hexString, "__EXPECTED_PUBKEY_DATA__")
        XCTAssertEqual(address.description, addressFromString.description)
    }

    func testSign() {
        // TODO: Create implementation
    }
}
